package com.xs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * (Announcement)实体类
 *
 * @author makejava
 * @since 2022-10-11 20:23:26
 */
@Data
public class Announcement implements Serializable {
    private static final long serialVersionUID = -74790563313442955L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 公告的图片
     */
    private String imag;
    /**
     * 公告代表的文章id
     */
    private Integer aid;


    @TableField(exist = false)//表明数据库中不存在
    private Article article;
}

